﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Name
    {
        public int Num { get; set; }
        public int Opper()
        {
            Random ran = new Random();
            Num= ran.Next(1,4);
            return Num;
        }
        public int Rannum()
        {
            int ran = Opper();
            return ran;
        }
        public string Name2() 
        {
            Console.WriteLine("请输入你的姓名");
            string name = Console.ReadLine();
            return name;
        }
        public string Ran()
        {
             int num = Rannum();
            string a = "0";
            if(num == 1)
            {
                a = "剪刀";
            }
            if(num == 2)
            {
                a = "石头";
            }
            if (num == 3)
            {
                a = "布";
            }
            return a;
        }
    }
}